package com.ruoyi.proSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.proSystem.mapper.ProInventoryMapper;
import com.ruoyi.proSystem.domain.ProInventory;
import com.ruoyi.proSystem.service.IProInventoryService;

/**
 * 规格库存Service业务层处理
 *
 * @author ruoyi
 * @date 2024-07-29
 */
@Service
public class ProInventoryServiceImpl implements IProInventoryService
{
    @Autowired
    private ProInventoryMapper proInventoryMapper;

    /**
     * 查询规格库存
     *
     * @param id 规格库存主键
     * @return 规格库存
     */
    @Override
    public ProInventory selectProInventoryById(Integer id)
    {
        return proInventoryMapper.selectProInventoryById(id);
    }

    /**
     * 查询规格库存列表
     *
     * @param proInventory 规格库存
     * @return 规格库存
     */
    @Override
    public List<ProInventory> selectProInventoryList(ProInventory proInventory)
    {
        return proInventoryMapper.selectProInventoryList(proInventory);
    }

    /**
     * 新增规格库存
     *
     * @param proInventory 规格库存
     * @return 结果
     */
    @Override
    public int insertProInventory(ProInventory proInventory)
    {
        return proInventoryMapper.insertProInventory(proInventory);
    }

    /**
     * 修改规格库存
     *
     * @param proInventory 规格库存
     * @return 结果
     */
    @Override
    public int updateProInventory(ProInventory proInventory)
    {
        return proInventoryMapper.updateProInventory(proInventory);
    }

    /**
     * 批量删除规格库存
     *
     * @param ids 需要删除的规格库存主键
     * @return 结果
     */
    @Override
    public int deleteProInventoryByIds(Integer[] ids)
    {
        return proInventoryMapper.deleteProInventoryByIds(ids);
    }

    /**
     * 删除规格库存信息
     *
     * @param id 规格库存主键
     * @return 结果
     */
    @Override
    public int deleteProInventoryById(Integer id)
    {
        return proInventoryMapper.deleteProInventoryById(id);
    }
}
